#include "edge.h"
#include <iostream>

using namespace std;

edge::edge(point* point1, point* point2){
    edgePoints[0] = *point1;
    edgePoints[1] = *point2;
    cut = false;
}

void edge::edge(point points_in[2]){
    edgePoints[0] = *point1;
    edgePoints[1] = *point2;
}

void edge::edge(point points_in[2]){
    edgePoints[0] = points_in[1];
    edgePoints[1] = point2_in[1];
}


// USAGE:
// int *point = thisEdge->get_points();
point* edge::get_points(){
    point* outPoints;
    outPoints = new point[2];
    outPoints[0] = edgePoints[0];
    outPoints[1] = edgePoints[1];
    return outPoints;
}

void edge::setCut(bool cut_in){
    cut = cut_in;
}

bool edge::getCut(){
    return cut;
}

void edge::print(){
    cout << "This edge: \n";
    edgePoints[0].print();
    edgePoints[1].print();
}
